<?php
/**
 * Copyright (C) 2009  Honghao Geng (genghonghao@gmail.com)
 * $Id: reload.php 129 2009-08-04 02:10:32Z genghonghao $
 */

!defined('SMARTGOON_MAIN_LOADED') ? define('SMARTGOON_MAIN_LOADED', 1) : NULL;
require_once './config.php';
require_once './includes/common.php';
$interval = $_GET['interval'] ? trim($_GET['interval']) : NULL;
$url = $_GET['url'] ? urldecode(trim($_GET['url'])) : NULL;
$msg = $_GET['msg'] ? urldecode(trim($_GET['msg'])) : NULL;
$state_text = $_GET['state_text'] ? urldecode(trim($_GET['state_text'])) : NULL;
if ($interval == NULL || $url == NULL || $msg == NULL || $state_text == NULL) {
    header("Location: index.php");
    exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
        <meta http-equiv='refresh' content='<?php echo $interval+5; ?>;url=<?php echo $url; ?>'>
        <title><?php echo $lang['page_jump']; ?>......</title>
        <style type="text/css">
            * { margin: 0; padding: 0; }
            html { font-size: 100%; height: 100%; margin-bottom: 1px; }
            body { margin: 100px 0px;font-size: 13px;}
            .reload_comment {
                background: #ffffff;
                color: #4A7EB8;
                width: 540px;
                height: 90px;
                float: none;
                margin: 30px;
                padding: 20px 10px 25px 30px;
                border-top: 1px solid #D4D0C8;
                border-bottom: 1px solid #D4D0C8;
                border-left: 1px solid #D4D0C8;
                border-right: 1px solid #D4D0C8;
                text-align:left;
            }
            .reload_stutes { height:25px; }
            .reload_text { height:25px; }
            .reload_jump { height:25px; }
        </style>
    </head>
    <body align="center">
        <div align="center">
            <div class="reload_comment">
                <div class="reload_stutes"><strong><?php echo $state_text; ?></strong></div>
                <div class="reload_text"><p><?php echo $msg; ?></p></div>
                <div class="reload_jump"><p><?php printf($lang['login_jump_text'], $url); ?></p></div>
            </div>
        </div>
    </body>
</html>